// pages/shop-cart/shop-cart.js
const app = getApp()

const {globalData} = app

Component({
  behaviors: [],
  options: {
    pureDataPattern: /^_/, // 指定所有 _ 开头的数据字段为纯数据字段
  },
  properties: {
  },
  /**
   * 页面的初始数据
   */
  data: {
    result: true,
    orderInfo: {}
  },
  methods: {
    rePayHandle() {

    },
    onLoad(options) {
      const {result, order_money, create_time} = options
      this.setData({
        result: result == 1,
        orderInfo: {order_money: Number(order_money), create_time}
      })
    },
    // 请求重新支付
    requestRePay(data) {
      wx.ajax.post('cartSettlement.action', data).then(() => {
        
      })
    },
    onShow() {
      
    }
  }
})